package com.zmn.brs.drools.bean;

import com.zmn.brs.business.impl.record.OperateRecordBServiceImpl;
import com.zmn.brs.common.model.mq.OperateRecordMq;
import com.zmn.brs.model.entity.record.EventRecord;
import com.zmn.brs.model.entity.threshold.ThresholdBase;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 类描述：安全监控
 *
 * @author xujie
 * @since 2021/03/17 15:58
 * @modifyer zhangyao 2021/04/20 修改recordMq的类型为OperateRecordDIO
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SafetyMonitor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 阀值基础数据
     */
    private ThresholdBase thresholdBase;

    /**
     * 员工操作记录消息
     */
    private OperateRecordMq recordMq;

    /**
     * 上一条执行结果
     */
    private Boolean lastResult;

    /**
     * 执行结果
     */
    private Boolean result;

    /**
     * 员工操作记录业务服务实现
     */
    private OperateRecordBServiceImpl operateRecordBusinessServiceImpl;

    /**
     * 触发事件记录
     */
    private EventRecord eventRecord;

    /**
     * 员工信息
     */
    private ObjectInfo objectInfo;

    /**
     * 描述: 备注
     **/
    private String remarks;

    /**
     * 角色 不符，跳出规则判断
     */
    private Boolean returnRole;

    /**
     * 扩展字段
     */
    private String expand;

}
